package com.myschool.server.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "fees")
public class Fees extends BaseEntity {

	private Double fee;

	@Column(length = 100, nullable = false)
	private String description;

	@ManyToOne
	private Grade grade;

	private Short year;

	/**
	 * @return the fee
	 */
	public Double getFee() {
		return fee;
	}

	/**
	 * @param fee the fee to set
	 */
	public void setFee(Double fee) {
		this.fee = fee;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the grade
	 */
	public Grade getGrade() {
		return grade;
	}

	/**
	 * @param grade the grade to set
	 */
	public void setGrade(Grade grade) {
		this.grade = grade;
	}

	/**
	 * @return the year
	 */
	public Short getYear() {
		return year;
	}

	/**
	 * @param year the year to set
	 */
	public void setYear(Short year) {
		this.year = year;
	}

}
